﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Shop.Managers;

namespace Shop.Areas.Admin.Controllers
{
    public class OrdersController : Controller
    {
        private IManagerProduct managerProduct;
        private IManagerBasket managerBasket;

        public OrdersController(IManagerBasket managerOrderPosition, IManagerProduct managerProduct)
        {
            this.managerBasket = managerOrderPosition;
            this.managerProduct = managerProduct;
        }

        public ActionResult Index()
        {
            return View(managerBasket.GetAllOrders(Entity.Baskets.State.Ordered).ToList());
        }



    }
}
